package com.edu.service.impl;

import com.edu.bean.Decbalance;
import com.edu.mapper.DecbalanceMapper;
import com.edu.service.DecbalanceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author:GoodBoy
 * @DATE:2024/11/12 20:59
 * @describe:
 */
@Service
public class DecbalanceServiceImpl implements DecbalanceService {
    @Resource
    private DecbalanceMapper decbalanceMapper;

    @Override
    public int deleteByPrimaryKey(Integer decbalanceId) {
        return decbalanceMapper.deleteByPrimaryKey(decbalanceId);
    }

    @Override
    public int insert(Decbalance row) {
        return decbalanceMapper.insert(row);
    }

    @Override
    public Decbalance selectByPrimaryKey(Integer userId) {
        return decbalanceMapper.selectByPrimaryKey(userId);
    }

    @Override
    public List<Decbalance> selectAll() {
        return decbalanceMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(Decbalance row) {
        return decbalanceMapper.updateByPrimaryKey(row);
    }
}
